package cn.wxManage.goodsManage.controller;

import cn.common.common.model.ServerResponse;
import cn.wxManage.goodsManage.service.IGoodsTypeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Zhang on 2018/12/11.
 */
@RestController
@RequestMapping("/goodsType")
@Api(value="商品种类相关方法",description = "商品种类相关方法")
public class GoodsTypeController {
    @Autowired
    IGoodsTypeService iGoodsTypeService;

    @ApiOperation(value="获取商品类型", notes="获取商品类型",produces = "application/json")
    @GetMapping(value = "/getGoodsTypeList")
    public ServerResponse<?> getGoodsTypeList(@RequestParam("fatherId") String fatherId){
        return iGoodsTypeService.getGoodsTypeList(fatherId);
    }
}
